<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    function getA([a,b,c,...d]) {

        console.log(a,b,c,d)
    }
    getA([1,2,3,4,5])


//    function getB({name='阿萨打算打撒无',age=123}={})
    function getB({name='阿萨打算打撒无',age=123}) {

        console.log(name,age)
    }
    getB({name:'阿萨打算打',age:15})


    function getB1({name='阿萨打算打撒无',age=123}={}) {
        console.log(name,age)
    }
    function getB2({name,age}={name:'阿萨打算打撒无',age:123}) {
        console.log(name,age)
    }


    getB1()
    getB2()
    getB1({})
    getB2({})



</script>

</body>
</html>